import axios from 'services/axiosConfig.js'
import { PositionApi } from 'services/apiConfig.js'

class PositionService {
  addPosition(position) {
    return axios({
      method: PositionApi.addPosition.method,
      url: PositionApi.addPosition.url,
      data: position
    })
  }
  getPosition(userId) {
    return axios({
      method: PositionApi.getPosition.method,
      url: PositionApi.getPosition.url + '?Position.userid=' + userId
    })
  }
}

export default new PositionService()
